/********************
uart.h
2011-04-25
********************/

/******************************************************************************
File:			plc_proc.H
Author:			William Young	
Date:			2012-04-26
Version: 		v1.0
******************************************************************************/
#ifndef _UART_H_
#define _UART_H_

#include "bl6810.h"


#define UART_BUFFER_LENGTH 200

typedef struct
{
	unsigned char bufferValid;
	unsigned char dataLen;
	unsigned char* ptrDataBuffer;
} UartInStruct;

extern UartInStruct uartIn;

void UartInit();
void UartSend(unsigned char* dataAddress, unsigned char sendLength);

#endif